<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/black/easyui.css"/>
<script type="text/javascript" src="js/common.js"></script>
<link rel="stylesheet" type="text/css" href="css/taojin/priorityRole.css">
<link rel="stylesheet" type="text/css" href="css/taojin/layout.css">
</head>
<body>
	<script type="text/javascript">
		$(function(){
			var addTab = function(title,href){
				if($("#tt").tabs("exists",title)){
					//存在
					$("#tt").tabs("select",title);
				}else{
					//不存在
					$("#tt").tabs("add",{
						title:title,
						href:href,
						closable:true
					});
				}
				
			}
			$(".caidan").linkbutton({"onClick":function(){
				var title =$(this).linkbutton("options").text;
				var href = $(this).linkbutton("options").href2;
				addTab(title,href);
			}});

			$("#index-layout-accordion").accordion('getSelected').panel('collapse');

			
			//关闭所有
			$("#close_all").linkbutton({
				onClick : function() {
					var tabs = $("#tt").tabs("tabs");
					for (var i = tabs.length - 1; i > 0; i--) {
						$("#tt").tabs("close", i);
					}
				}
			});		
		});
	
	
	</script>
	<div id="index-layout-base" class="easyui-layout" data-options="fit:true,border:false" >
		<div data-options="region:'north'" style="height:80px;">
		
		</div>
		<div data-options="region:'west'" style="width: 170px;">
			<div id="index-layout-accordion" class="easyui-accordion" data-options="border:false"style="height: 750px;border-bottom: 1px solid #8A8A8A;" >
				<div title="人事管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'部门管理',href2:'dept',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'员工管理',href2:'emp',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'角色管理',href2:'roles',width:168"></a></li>
					</ul>
				</div>
				<div title="个人设置" data-options="iconCls:'icon-reload',selected:true" style="overflow: auto;">
					<ul style="list-style: none;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'修改密码',href2:'editPassword',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'修改邮箱或手机',href2:'editEmailTel',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'上传头像',href2:'editEmpHead',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'设置优先角色',href2:'editPriorityRole',width:168"></a></li>
					</ul>
				</div>
				<div title="订单管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'合同订单',href2:'go_to_Order',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'订单明细',href2:'toOrderDetails',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'交付记录',href2:'toSgd',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'发货单',href2:'toSgf',width:168"></a></li>
					</ul>
				</div>
				
				<div title="客户管理" data-options="iconCls:'icon-man'" style="overflow: auto;">
					<ul style="list-style: none; padding: 0px; margin: 0px;">
						<li><a class="easyui-linkbutton caidan"  
								data-options="text:'获客',href2:'toGetCustomer',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'全部客户',href2:'tolayout1',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客户导入',href2:'tolaiyuan',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'批量共享转移',href2:'#',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客户合并',href2:'#',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客户日志转移',href2:'#',width:168"></a></li>						
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'联系人',href2:'tocontact',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'联系人纪念日',href2:'#',width:168"></a></li>
					</ul>
				</div>
				<div title="付款管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'计划付款',href2:'toPp',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'付款',href2:'toPr',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'付款发票',href2:'toPt',width:168"></a></li>
				</div>
				<div title="回款管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none; padding:">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'计划回款',href2:'toBackPlan',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'回款',href2:'toBackRecord',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'开票记录',href2:'toSgd',width:168"></a></li>
				</div>  
				<div title="售后管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none; padding: 0px; margin: 0px;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客户关怀',href2:'to_CustomerCareT',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客户投诉',href2:'to_Complaint',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'客服记录',href2:'toCustomerService',width:168"></a></li>  
					</ul>  
				</div>	
				<div title="产品管理" data-options="iconCls:'icon-save'" style="overflow: auto;">
					<ul style="list-style: none; padding: 0px; margin: 0px;">
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'产品',href2:'topro',width:168"></a></li>
						<li><a class="easyui-linkbutton caidan" 
								data-options="text:'库存',href2:'toinve',width:168"></a></li> 
					</ul>  
				</div>			
			</div>
		</div>
		<div data-options="region:'center'">
			<div id="tt" class="easyui-tabs" style="width: 500px; height: 250px;"
				 data-options=" fit:true,border:false" >
				<div  style="padding:5px" href="tolayout1">这里放你们的网页!!!!</div>
			</div>	
			<div id="tab-tools"
			style="border: none; border-bottom: solid 1px #99bbe8;">
			 <a href="#" id="close_all"
				class="easyui-linkbutton" plain="true" iconCls="icon-cut"></a>
		</div>
		</div> 
    </div>
</body>
</html>